package model;

public class User {
    private String account;  // 学号/工号
    private String password; // 密码
    private String contact;  // 联系方式
    private String role;     // 角色：user/admin

    // 构造方法
    public User(String account, String password, String contact) {
        this.account = account;
        this.password = password;
        this.contact = contact;
        this.role = "user";  // 默认普通用户
    }

    // Getter和Setter
    public String getAccount() { return account; }
    public void setAccount(String account) { this.account = account; }

    public String getPassword() { return password; }
    public void setPassword(String password) { this.password = password; }

    public String getContact() { return contact; }
    public void setContact(String contact) { this.contact = contact; }

    public String getRole() { return role; }
    public void setRole(String role) { this.role = role; }
}